
<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title></title>
</head>

<body class="wrap" style="background-color: #000"></body>
<script type="text/javascript" src="./script/api.js"></script>
<script type="text/javascript">
    apiready = function () {
        api.openWin({
            name: 'main',
            url: './html/main.html',
            allowEdit: true,
            slidBackEnabled: api.systemType === 'android', // 禁止ios左滑
            useWKWebView: true, // 提交webview性能
            animation: {
                type: "fade",
                subType: "from_top",
                duration: 300
            }
        });
        //应用回到前台
        api.addEventListener({
            name: 'resume'
        }, function (ret, err) {
            api.removeLaunchView({
                animation: {
                    type: 'fade',
                    duration: 300
                }
            });
        });

        setTimeout(function () {
            api.removeLaunchView({
                animation: {
                    type: 'fade',
                    duration: 300
                }
            });
        }, 8000);
    };

</script>

</html>
